package com.netspider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;

@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
//@SpringBootApplication
@ComponentScan(basePackages= {"com.netspider.service",
		"com.netspider.config"})
@MapperScan(basePackages = {"com.netspider.dao"})
@EnableScheduling
@EnableTransactionManagement
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
public class NetSpiderApplication {

	public static void main(String[] args) {
		SpringApplication.run(NetSpiderApplication.class, args);
	}

}
